package com.wtwd.wtwddevice.service.impl;


import com.wtwd.wtwddevice.mapper.DeviceSleepRecordInfoMapper;
import com.wtwd.wtwddevice.model.entity.DeviceSleepRecordInfo;
import com.wtwd.wtwddevice.service.IDeviceSleepRecordInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author mjy
 * @since 2024-05-31
 */
@Service
public class DeviceSleepRecordInfoServiceImpl extends ServiceImpl<DeviceSleepRecordInfoMapper, DeviceSleepRecordInfo> implements IDeviceSleepRecordInfoService {

    @Resource
    private DeviceSleepRecordInfoMapper deviceSleepRecordInfoMapper;

    @Override
    public boolean deleteBySleepRecordId(Long deviceSleepRecordId) {
        return deviceSleepRecordInfoMapper.deleteBySleepRecordId(deviceSleepRecordId)>0?true:false;
    }
}
